package dict

type Consumer = func(key string, val interface{}) bool
type Dict interface {
	Get(key string) (val interface{}, exists bool)
	Len()
	Put(key string, val interface{}) (result int)
	PutIfAbsent(key string, val interface{}) (result int)
	PutIfExist(key string, val interface{}) (result int)
	Remove(key string) (result int)
	ForEach(consumer Consumer)
	Keys() []string
	RandomsKeys(limit int) []string
	Clear()
}
